var config = require('../config');
var mongoose = require('mongoose');
var moment = require('moment');

//mongoose
var url = 'mongodb://' + config.host + '/' + config.db;
mongoose.connect(url, {
  user : config.user,
  pass : config.pwd
});

require('../models/user.js');
require('../models/category.js');
require('../models/store.js');
require('../models/battle.js');

var User = mongoose.model('User');
var Category = mongoose.model('Category');
var Store = mongoose.model('Store');
var Battle = mongoose.model('Battle');
